How to enable SSI ?

How to enable Server Side Includes on the server ?
Ans:
First you can check SSI are enabled on your server or not.  So create one test.html file and add the following code .
<!--#ECHO var="DATE_LOCAL" -->
Then access the page by using the URL http://domain.com/test.html  and  it shows the current date to the screen
Wednesday, 23-Jun-2010 23:53:09 BST
Means SSI was enabled on your server
and  If  the URL  shows the blank page then SSI are  not enabled on your server.
If you want to enable it then you need to add the following code into the .htaccess file .

AddType text/html .htm .html .shtm .shtml .sht
AddHandler server-parsed .htm .html .shtml .sht .shtm
Save and exit
If you want to enable the SSI on the server then you need to add
same code in httpd.conf file and restart the apache service.

One Thought to “How to enable SSI ?”

  1. I am always searching online for articles that can help me. Thank you

Comments are closed.